home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / smail-3.1.28 / src / transports / pipe.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-11  |  1.1 KB  |  32 lines

  1. /* @(#)src/transports/pipe.h    1.3 7/11/92 11:51:38 */
  2.  
  3. /*
  4.  *    Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll
  5.  *    Copyright (C) 1992  Ronald S. Karr
  6.  * 
  7.  * See the file COPYING, distributed with smail, for restriction
  8.  * and warranty information.
  9.  */
  10.  
  11. /*
  12.  * pipe.h:
  13.  *    interface file for transport driver in pipe.c.
  14.  */
  15.  
  16. /* structure for pipe driver's private data */
  17. struct pipe_private {
  18.     char *cmd;
  19.     char *user;                /* run as this user */
  20.     char *group;            /* run as this group */
  21.     int umask;                /* umask for child process */
  22. };
  23.  
  24. /* transport flags private to pipe.c */
  25. #define PIPE_AS_USER        0x00010000    /* use uid/gid from addr structure */
  26. #define PIPE_IGNORE_STATUS  0x00020000    /* ignore exit status of program */
  27. #define PIPE_AS_SENDER        0x00040000    /* use uid of sender */
  28. #define PIPE_LOG_OUTPUT        0x00080000    /* log program output */
  29. #define PIPE_PARENT_ENV     0x00100000    /* stuff env from parent addr */
  30. #define PIPE_IGNORE_WRERRS  0x00200000    /* ignore write errors */
  31. #define PIPE_DEFER_ERRORS   0x00400000    /* defer rather than fail on errors */
  32.